package util;


public class Logger {
	
	public static void logServerInfo(String info) {
		if(!(info.equals(ClientProtocol.HEARTBEAT))) {
			System.out.println("[INFO] : " + new java.util.Date() + " : server> " + info);			
		} else {
			//System.out.println("[INFO] : " + new java.util.Date() + " : server> alive!");
		}
	}

	public static void logClientInfo(String clientId, String info) {
		if(!(info.equals(ClientProtocol.HEARTBEAT))) {
			System.out.println("[INFO] : " + new java.util.Date() + " : client " + clientId + "> " + info);
		} else {
			//System.out.println("[INFO] : " + new java.util.Date() + " : client " + clientId + "> alive!");
		}
	}
	
	public static void logClientError(String clientId, String error) {
		System.out.println("[ERROR] : " + new java.util.Date() + " : client " + clientId + "> " + error);
	}

}
